package com.example.democode01.kotlin

fun main() {
    // 1. 数字类型
    var intNum: Int = 10
    var longNum: Long = 100L
    var doubleNum: Double = 3.14
    var floatNum: Float = 3.14f
    var shortNum: Short = 10

    // 2. 布尔类型
    var isShow: Boolean = true

    // 3. 字符类型
    var char: Char = 'A'

    // 4.  字符串
    val str: String = "Kotlin"
    val multiLineStr = """
        test
        demo one
    """

    //换行
    val huanhang:String="""
        666
        777
        888
    """.trimIndent()

    println(huanhang)

    val huanhang1:String="test1\n test2\n test3"
    println(huanhang1)

    // 字符串模板
    val name: String = "Jack"
    val age: Int = 20
    val message="JackName:${name},age:${age+1}"

    println(message)
}